import request from "@/common/request"

/**
 * 微信登录
 * @param data
 * @returns {*}
 */
export function appletLogin(data) {
    return new request({
        url: '/oauth/applet',
        method: 'post',
		data:data
    })
}

/**
 * 手机+密码登录
 * @param data
 */
export function doLogin(data) {
    return new request({
        url: '/member/auth/login',
        method: 'post',
		data:data
    })
}

/**
 * 手机+验证码登录
 * @param data
 */
export function smsLogin(data) {
    return new request({
        url: '/member/auth/sms-login',
        method: 'post',
		data:data
    })
}

/**
 * 发送验证码
 * @param data
 */
export function sendSmsCode(data) {
    return new request({
        url: '/member/auth/send-sms-code',
        method: 'post',
        data:data
    })
}

